package top.healthylife.gateway.platform.baihang.api.api.operatorproduct;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.baihang.api.util.BaiHangHttpUtil;
import top.healthylife.gateway.platform.baihang.dto.operatorproduct.mbasu011.req.BHReqPhonePointsCheckDto;
import top.healthylife.gateway.platform.baihang.dto.operatorproduct.mbasu011.res.BHResPhonePointsCheckDto;

/**
 * 手机信用分核查
 * @author gwx
 * @date 2021/9/6
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20 , apiName = "手机信用分核查" , info = "核查手机号用户的信用分情况（支持联通）")
public class BHPhonePointsCheckApi implements ParentFace<BHReqPhonePointsCheckDto, BHResPhonePointsCheckDto> {

    private static final String PRODUCT_CODE = "MBASUT11";

    @Override
    public BHResPhonePointsCheckDto execute(BHReqPhonePointsCheckDto reqDto){
        return BaiHangHttpUtil.httpPostRequest(reqDto,PRODUCT_CODE, BHResPhonePointsCheckDto.class);
    }
}
